package com.mybatis.sp.mybatisexamle_xml.mapper.master;


import com.mybatis.sp.mybatisexamle_xml.pojo.Customer;

import java.util.List;

public interface CustomerMapper {

    /**
     * 查询所有客户
     * @return
     */
    List<Customer> findAll();


    /**
     * 查询客户
     * @param id
     * @return
     */
    Customer findById(Integer id);


    /**
     * 删除客户
     * @param id
     */

    void deleteById(Integer id);


    /**
     * 更新客户
     * @param customer
     */
    void updateById(Customer customer);


    /**
     * 保存客户
     * @param customer
     */
    void save(Customer customer);

}
